<template>
  <div class="goods-detail">
    <div v-for="item in detailInfo.detailImage" :key="item.key">
      <div class="tag">
        <van-tag plain color="#333">{{ item.key }}</van-tag>
      </div>

      <img
        v-for="(image, index) in item.list"
        :key="index"
        v-lazy="image"
        width="100%"
      />
    </div>
  </div>
</template>

<script>
export default {
  props: {
    detailInfo: Object
  }
}
</script>

<style lang="less" scoped>
.tag {
  display: flex;
  justify-content: center;
  margin: 10px 0;
}
</style>
